home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 25
/
Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso
/
Aminet
/
comm
/
net
/
LT_UNIX255.lha
/
Extras
/
arit.sh
next >
Wrap
Text File
|
1997-04-16
|
517b
|
35 lines
a1="";a2="";c="";resul="";dd=""
ff="";reset timer
_inicio
if ff=>20
echo
timer
echo
ex a1,a2,c,resul,dd,ff
exit
fi
rnd -o 10;attrib a1
rnd -o 10;attrib a2
rnd -o 1;attrib c
a1=a1--" "
a2=a2--" ";c=c--" "
if c=0
echo -a " ${a1} + ${a2} = "
dd=${a1}
dd=dd+${a2}
else
echo -a " ${a1} - ${a2} = "
dd=${a1}
dd=dd-${a2}
fi
input ;
attrib resul
if resul=dd
echo " [ CERTO ]"
ff=ff+1
goto inicio
else
echo " [ ERRADO ] - ${dd}"
goto inicio
fi